import { dayjs } from 'element-plus'
import Mock, { Random } from 'mockjs'
import { MockMethod } from 'vite-plugin-mock'

const fxdjList = [
  { fxdj: 'VH', fxdjName: '重大风险' },
  { fxdj: 'H', fxdjName: '较大风险' },
  { fxdj: 'N', fxdjName: '一般风险' },
  { fxdj: 'L', fxdjName: '低风险' }
]

export default [
  {
    url: '/mis/cpo/heating/getOne',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: {
          rwzgrlYear: Random.integer(0, 100),
          zjgrlYear: Random.integer(0, 100),
          rbgrlYear: Random.integer(0, 100),
          dglgrlYear: Random.integer(0, 100),
          sh0040Year: Random.integer(0, 100),
          sh0082Year: Random.integer(0, 100),
          rwzgrlMonth: Random.integer(0, 100),
          zjgrlMonth: Random.integer(0, 100),
          rbgrlMonth: Random.integer(0, 100),
          dglgrlMonth: Random.integer(0, 100),
          sh0040Month: Random.integer(0, 100),
          sh0082Month: Random.integer(0, 100),
          rwzgrlGj: Random.integer(0, 100),
          zjgrlGj: Random.integer(0, 100),
          rbgrlGj: Random.integer(0, 100),
          dglgrlGj: Random.integer(0, 100),
          sh0040Aalm2: Random.integer(0, 100),
          sh0082Aalm7: Random.integer(0, 100)
        }
      }
    }
  },
  {
    url: '/tdengine/sisdata/loadcurve2',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: [
          [
            { indexValue: 0, avgValue: Random.integer(400, 600) },
            { indexValue: 1, avgValue: Random.integer(400, 600) },
            { indexValue: 2, avgValue: Random.integer(400, 600) },
            { indexValue: 3, avgValue: Random.integer(400, 600) },
            { indexValue: 4, avgValue: Random.integer(400, 600) },
            { indexValue: 5, avgValue: Random.integer(400, 600) },
            { indexValue: 6, avgValue: Random.integer(400, 600) },
            { indexValue: 7, avgValue: Random.integer(400, 600) },
            { indexValue: 8, avgValue: Random.integer(400, 600) },
            { indexValue: 9, avgValue: Random.integer(400, 600) },
            { indexValue: 10, avgValue: Random.integer(400, 600) },
            { indexValue: 11, avgValue: Random.integer(400, 600) }
          ],
          [
            { indexValue: 0, avgValue: Random.integer(200, 300) },
            { indexValue: 1, avgValue: Random.integer(200, 300) },
            { indexValue: 2, avgValue: Random.integer(200, 300) },
            { indexValue: 3, avgValue: Random.integer(200, 300) },
            { indexValue: 4, avgValue: Random.integer(200, 300) },
            { indexValue: 5, avgValue: Random.integer(200, 300) },
            { indexValue: 6, avgValue: Random.integer(200, 300) },
            { indexValue: 7, avgValue: Random.integer(200, 300) },
            { indexValue: 8, avgValue: Random.integer(200, 300) },
            { indexValue: 9, avgValue: Random.integer(200, 300) },
            { indexValue: 10, avgValue: Random.integer(200, 300) },
            { indexValue: 11, avgValue: Random.integer(200, 300) }
          ],
          [
            { indexValue: 0, avgValue: Random.integer(200, 300) },
            { indexValue: 1, avgValue: Random.integer(200, 300) },
            { indexValue: 2, avgValue: Random.integer(200, 300) },
            { indexValue: 3, avgValue: Random.integer(200, 300) },
            { indexValue: 4, avgValue: Random.integer(200, 300) },
            { indexValue: 5, avgValue: Random.integer(200, 300) },
            { indexValue: 6, avgValue: Random.integer(200, 300) },
            { indexValue: 7, avgValue: Random.integer(200, 300) },
            { indexValue: 8, avgValue: Random.integer(200, 300) },
            { indexValue: 9, avgValue: Random.integer(200, 300) },
            { indexValue: 10, avgValue: Random.integer(200, 300) },
            { indexValue: 11, avgValue: Random.integer(200, 300) }
          ]
        ]
      }
    }
  },
  {
    url: '/mis/hik/inout/listPage2',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: {
          total: 10,
          'records|5-15': [
            {
              inAndOutType: '@pick([0,1])',
              personName: '@cname()',
              visitStartDate: '@datetime()',
              doorName: '@ctitle(3,5)',
              eventTime: '@datetime()'
            }
          ]
        }
      }
    }
  },
  {
    url: '/mis/hik/visiting/listPage',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: {
          total: 10,
          'records|5-15': [
            {
              visitorName: '@cname()',
              receptionistName: '@cname()',
              visitStartDate: '@datetime()',
              visitEndDate: '@datetime()'
            }
          ]
        }
      }
    }
  },
  {
    url: '/mis/hik/inout/timeline',
    method: 'post',
    response: () => {
      return {
        code: 200,
        'data|5-15': [
          {
            userName: '@cname()',
            doorName: '@ctitle(3, 5)',
            eventDate: '@datetime()'
          }
        ]
      }
    }
  },
  {
    url: '/mis/hik/attend/listPage',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: {
          total: 10,
          'records|5-15': [
            {
              userName: '@cname()',
              doorName: '@ctitle(3, 5)',
              eventDate: '@datetime()'
            }
          ]
        }
      }
    }
  },
  {
    url: '/mis/hik/attend/getUserTypeNum',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: [
          {
            user_type: 0,
            user_num: Random.integer(60, 200)
          },
          {
            user_type: 1,
            user_num: Random.integer(60, 200)
          },
          {
            user_type: 2,
            user_num: Random.integer(60, 200)
          }
        ]
      }
    }
  },
  {
    url: '/tdengine/sisdata/getLimListBySta',
    method: 'post',
    response: () => {
      return {
        code: 200,
        'data|5-15': [
          {
            WONUM: '@ctitle(2, 3)',
            CUBUGTP: '@ctitle(3, 5)',
            STATUS: '@datetime()',
            REPORTDATE: '@ctitle(3, 5)',
            DESCRIPTION: '@ctitle(2, 3)',
            CREWID: '@ctitle(3, 5)',
            CUSPEC: '@datetime()',
            CUUNIT: '@ctitle(3, 5)',
            CUSTWAITDES: '@ctitle(2, 3)',
            STATUSDATE: '@ctitle(3, 5)'
          }
        ]
      }
    }
  },
  {
    url: '/tdengine/sisdata/getLimNumBySta',
    method: 'post',
    response: () => {
      return {
        code: 200,
        'data|5-10': [
          {
            CUSPEC: '@ctitle(2, 3)',
            LIM_NUM: Random.integer(60, 200)
          }
        ]
      }
    }
  },
  {
    url: '/tdengine/sisdata/getTicketListBySta',
    method: 'post',
    response: () => {
      return {
        code: 200,
        'data|5-15': [
          {
            TICKET_TYPE: '@ctitle(2, 3)',
            TICKET_CODE: '@ctitle(3, 5)',
            TICKET_GUARDIAN: '@datetime()',
            TICKET_CHARGE: '@ctitle(3, 5)',
            TICKET_TEAM: '@ctitle(2, 3)',
            TICKET_NUMBER: '@ctitle(3, 5)',
            TICKET_LOCATION: '@datetime()',
            TICKET_CONTENT: '@ctitle(3, 5)',
            TICKET_PLAN_BEG: '@ctitle(2, 3)',
            TICKET_PLAN_END: '@ctitle(3, 5)',
            TICKET_END: '@datetime()',
            TICKET_STA: '@ctitle(3, 5)'
          }
        ]
      }
    }
  },
  {
    url: '/tdengine/sisdata/getTicketNumBySta',
    method: 'post',
    response: () => {
      return {
        code: 200,
        'data|5-10': [
          {
            TICKET_TYPE: '@ctitle(2, 3)',
            TICKET_NUM: Random.integer(60, 200)
          }
        ]
      }
    }
  },
  {
    url: '/mis/hik/vehiclecross/timeline',
    method: 'post',
    response: () => {
      return {
        code: 200,
        'data|5-10': [
          {
            userName: '@ctitle(2, 3)',
            plateNo: '@ctitle(3, 5)',
            crossDate: '@datetime()',
            entranceName: '@ctitle(3, 5)'
          }
        ]
      }
    }
  },
  {
    url: '/mis/hik/vehicleattend/listPage2',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: {
          total: 10,
          'records|5-15': [
            {
              userName: '@ctitle(2, 3)',
              plateNo: '@ctitle(3, 5)',
              crossDate: '@datetime()',
              entranceName: '@ctitle(3, 5)'
            }
          ]
        }
      }
    }
  },
  {
    url: '/mis//cpo/monthcompplanDetail/listData',
    method: 'post',
    response: () => {
      return {
        code: 200,
        'data|7': [
          {
            planMonth: dayjs().format('YYYY-MM'),
            indexName: '发电量',
            indexUnit: 'MWH',
            planVal: Random.integer(60, 200),
            strivingVal: Random.integer(60, 200),
            accuVal: Random.integer(60, 200)
          }
        ]
      }
    }
  },
  {
    url: '/mis/hik/vehicleattend/getVehicleattendChart',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: [
          { plate_num: Random.integer(60, 200), user_type: 1, entrance_name: '正门出入口', entrance_syscode: 'ABC001' },
          { plate_num: Random.integer(60, 200), user_type: 0, entrance_name: '正门出入口', entrance_syscode: 'ABC001' },
          { plate_num: Random.integer(60, 200), user_type: 1, entrance_name: '次门出入口', entrance_syscode: 'ABC002' },
          { plate_num: Random.integer(60, 200), user_type: 0, entrance_name: '次门出入口', entrance_syscode: 'ABC002' }
        ]
      }
    }
  },
  {
    url: '/mis/cpo/fueldispatch/getOne',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: {
          fuelId: Random.integer(60, 200),
          fuelDate: Random.integer(60, 200),
          inHm: Random.integer(60, 200),
          inYm: Random.integer(60, 200),
          outHm: Random.integer(60, 200),
          outYm: Random.integer(60, 200),
          outTfl: Random.integer(60, 200),
          storeHm: Random.integer(60, 200),
          storeYm: Random.integer(60, 200),
          avgOut: Random.integer(60, 200)
        }
      }
    }
  },
  {
    url: '/tdengine/sisdata/getLoadCurveByRedis2',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: {
          M0_yxts: Random.integer(60, 200),
          HY_0_003: Random.integer(60, 200),
          '2DCS_2FT04OUT': Random.integer(60, 200),
          '1DCS_COM_J0NDA10CT150': Random.integer(60, 200),
          '1DCS_SELMW': Random.integer(60, 200),
          '2DCS_SELMW': Random.integer(60, 200),
          '1DCS_THRPRESS': Random.integer(60, 200),
          '2DCS_THRPRESS': Random.integer(60, 200),
          '1DCS_MSTMTEM': Random.integer(60, 200),
          '2DCS_MSTMTEM': Random.integer(60, 200),
          '1DCS_RHTSEL': Random.integer(60, 200),
          '2DCS_RHTSEL': Random.integer(60, 200),
          '1DCS_LAB34CT150': Random.integer(60, 200),
          '2DCS_LAB34CT150': Random.integer(60, 200),
          '1DCS_10MAG10CP101': Random.integer(60, 200),
          '2DCS_10MAG10CP101': Random.integer(60, 200),

          FGD_FGD61_HTA20CQ0030: Random.integer(60, 200),
          FGD_FGD62_HTA20CQ0030: Random.integer(60, 200),
          FGD_FGD61_HTA20CQ005: Random.integer(60, 200),
          FGD_FGD62_HTA20CQ005: Random.integer(60, 200),
          FGD_FGD61_HTA20CQ001: Random.integer(60, 200),
          FGD_FGD62_HTA20CQ001: Random.integer(60, 200),
          M0_yjhfdl: Random.integer(60, 200),
          M0_nfdl: Random.integer(60, 200),
          M0_yfdl: Random.integer(60, 200),
          M0_rfdl: Random.integer(60, 200),
          '1DCS_COM_RBGRL_GJ': Random.integer(60, 200),
          '1DCS_COM_DGLGRL_GJ': Random.integer(60, 200),
          TFL_1005_SH0040_AALM1: Random.integer(60, 200),
          TFL_1011_SH0082_AALM6: Random.integer(60, 200)
        }
      }
    }
  },
  {
    // 作业风险分级管控
    url: '/dpleftitem1',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: [
          {
            name: '公司级',
            mvalue: Random.integer(60, 200),
            dvalue: Random.integer(20, 60)
          },
          {
            name: '部门级',
            mvalue: Random.integer(60, 200),
            dvalue: Random.integer(20, 60)
          },
          {
            name: '班组级',
            mvalue: Random.integer(60, 200),
            dvalue: Random.integer(20, 60)
          }
        ]
      }
    }
  },
  {
    // 设备风险分级管控
    url: '/dpleftitem2',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: [
          {
            name: '公司级',
            mvalue: Random.integer(60, 200),
            dvalue: Random.integer(20, 60)
          },
          {
            name: '部门级',
            mvalue: Random.integer(60, 200),
            dvalue: Random.integer(20, 60)
          },
          {
            name: '班组级',
            mvalue: Random.integer(60, 200),
            dvalue: Random.integer(20, 60)
          },
          {
            name: '岗位级',
            mvalue: Random.integer(60, 200),
            dvalue: Random.integer(20, 60)
          }
        ]
      }
    }
  },
  {
    // 职业健康和环境饼图数据结构
    url: '/dpleftitem3',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: {
          //职业健康风险
          hvalue: [
            { value: Random.integer(0, 50), name: '重大风险', itemStyle: { color: '#FF0000' } },
            { value: Random.integer(0, 50), name: '较大风险', itemStyle: { color: '#FF7D00' } },
            { value: Random.integer(0, 50), name: '一般风险', itemStyle: { color: '#FFFF00' } },
            { value: Random.integer(0, 50), name: '低风险', itemStyle: { color: '#0000FF' } }
          ],
          //环境风险
          evalue: [
            { value: Random.integer(0, 50), name: '重大风险', itemStyle: { color: '#FF0000' } },
            { value: Random.integer(0, 50), name: '较大风险', itemStyle: { color: '#FF7D00' } },
            { value: Random.integer(0, 50), name: '一般风险', itemStyle: { color: '#FFFF00' } },
            { value: Random.integer(0, 50), name: '低风险', itemStyle: { color: '#0000FF' } }
          ]
        }
      }
    }
  },
  {
    url: '/dpleftitem4', // 事故事件饼图数据结构
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: {
          //外部事件
          ovalue: [
            { value: Random.integer(0, 50), name: '人身' },
            { value: Random.integer(0, 50), name: '设备' },
            { value: Random.integer(0, 50), name: '火灾' },
            { value: Random.integer(0, 50), name: '其他' }
          ],
          //内部事件
          ivalue: [
            { value: Random.integer(0, 50), name: '人身' },
            { value: Random.integer(0, 50), name: '设备' },
            { value: Random.integer(0, 50), name: '火灾' },
            { value: Random.integer(0, 50), name: '其他' }
          ]
        }
      }
    }
  },
  {
    url: '/dpcenteritem2', // 事故事件饼图数据结构
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: [
          { value: Random.integer(0, 50), name: '热工班组' },
          { value: Random.integer(0, 50), name: '电气班组' },
          { value: Random.integer(0, 50), name: '汽机班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' },
          { value: Random.integer(0, 50), name: '锅炉班组' }
        ]
      }
    }
  },
  {
    // 未关闭隐患列表
    url: '/dprightitem1',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: [
          {
            bgbName: '1号炉引风机室1A引风机外墙开裂',
            bgbSta: '整改中',
            bgbLevel: 'VH',
            bgbLevelName: '重大隐患',
            bgbType: '设备设施隐患',
            bgbCate: '即查即改',
            bgbDsc: '措施2',
            bgbDate: '2024-07-01',
            isSgdw: '否'
          },
          {
            bgbName: '细灰库卸料设备电源开关扳手损坏，无法停送电',
            bgbSta: '整改中',
            bgbLevel: 'H',
            bgbLevelName: '较大隐患',
            bgbType: '设备设施隐患',
            bgbCate: '即查即改',
            bgbDsc: '措施2',
            bgbDate: '2024-07-01',
            isSgdw: '否'
          },
          {
            bgbName: '水管漏水，导致天花板掉落，易造成人身伤害',
            bgbSta: '整改中',
            bgbLevel: 'N',
            bgbLevelName: '一般隐患',
            bgbType: '设备设施隐患',
            bgbCate: '即查即改',
            bgbDsc: '措施2',
            bgbDate: '2024-07-01',
            isSgdw: '否'
          },
          {
            bgbName: '机组电缆夹层电缆桥架接地线脱落，易造成人身触电危险',
            bgbSta: '整改中',
            bgbLevel: 'N',
            bgbLevelName: '一般隐患',
            bgbType: '设备设施隐患',
            bgbCate: '即查即改',
            bgbDsc: '措施2',
            bgbDate: '2024-07-01',
            isSgdw: '否'
          },
          {
            bgbName: '锅炉400V配电室检修电源箱没有装设接地线，易造成人身触电事故',
            bgbSta: '整改中',
            bgbLevel: 'N',
            bgbLevelName: '一般隐患',
            bgbType: '设备设施隐患',
            bgbCate: '即查即改',
            bgbDsc: '措施2',
            bgbDate: '2024-07-01',
            isSgdw: '否'
          },
          {
            bgbName: '7米卫生间天花板脱扣，有砸人危险',
            bgbSta: '整改中',
            bgbLevel: 'N',
            bgbLevelName: '一般隐患',
            bgbType: '设备设施隐患',
            bgbCate: '即查即改',
            bgbDsc: '措施2',
            bgbDate: '2024-07-01',
            isSgdw: '否'
          },
          {
            bgbName: '2F磨煤机雨淋阀控制腔压力过低，发生火情时不能形成水雾，失去灭火功能。',
            bgbSta: '整改中',
            bgbLevel: 'N',
            bgbLevelName: '一般隐患',
            bgbType: '设备设施隐患',
            bgbCate: '即查即改',
            bgbDsc: '措施2',
            bgbDate: '2024-07-05',
            isSgdw: '否'
          }
        ]
      }
    }
  },
  {
    // 隐患奖励列表
    url: '/dprightitem2',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: [
          {
            name: '公司领导',
            fvalue: Random.integer(20, 60),
            zvalue: Random.integer(0, 20),
            yvalue: Random.integer(20, 60)
          },
          {
            name: '安环部',
            fvalue: Random.integer(20, 60),
            zvalue: Random.integer(10, 50),
            yvalue: Random.integer(20, 60)
          },
          {
            name: '生技部',
            fvalue: Random.integer(20, 60),
            zvalue: Random.integer(60, 200),
            yvalue: Random.integer(20, 60)
          },
          {
            name: '运行分场',
            fvalue: Random.integer(20, 60),
            zvalue: Random.integer(60, 200),
            yvalue: Random.integer(20, 60)
          },
          {
            name: '外委单位',
            fvalue: Random.integer(20, 60),
            zvalue: Random.integer(60, 200),
            yvalue: Random.integer(20, 60)
          }
        ]
      }
    }
  },
  {
    // 违章记录列表
    url: '/dprightitem3',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: [
          ['工作负责人没有及时结票，导致2号脱硫电梯检查工作票超期。', '2024-07-09', '玉光'],
          ['拉灰拉渣车辆装的过满，造成撒灰撒渣污染道路。', '2024-06-26', '侯大勇'],
          ['1号炉干排渣系统渣仓下面逆止阀间存有杂物，作业完成后未及时清理。', '2024-07-03', '刘海涛'],
          ['灰库321输灰管路漏灰，燃灰人员未及时进行处理。', '2024-06-28', '刘海涛']
        ]
      }
    }
  },
  {
    // 违章记录列表
    url: '/getBgbList',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        'result|5-10': [
          {
            bgbDate: '@date',
            cstName: '@ctitle(5, 10)',
            bgbName: '@ctitle(30, 50)',
            bgbBase: '@ctitle(30, 50)',
            bgbDsc: '@ctitle(30, 50)',
            userName: '@cname',
            bgbAtm: '@integer(20,50)'
          }
        ]
      }
    }
  },
  {
    // 事故事件饼图数据结构
    url: '/dprightitem4',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: [
          { value: Random.integer(0, 50), name: '人身安全' },
          { value: Random.integer(0, 50), name: '设备' },
          { value: Random.integer(0, 50), name: '火灾' },
          { value: Random.integer(0, 50), name: '防汛' },
          { value: Random.integer(0, 50), name: '建筑' },
          { value: Random.integer(0, 50), name: '生态环保' },
          { value: Random.integer(0, 50), name: '安全管理' },
          { value: Random.integer(0, 50), name: '其他' }
        ]
      }
    }
  },
  {
    // 隐患奖励清单明细
    url: '/dprightlist2',
    method: 'post',
    response: () => {
      return {
        code: 'success',
        data: [
          { bgbName: Random.integer(0, 50), fstUsrId: '人身安全' },
          { bgbName: Random.integer(0, 50), fstUsrId: '设备' },
          { bgbName: Random.integer(0, 50), fstUsrId: '火灾' },
          { bgbName: Random.integer(0, 50), fstUsrId: '防汛' },
          { bgbName: Random.integer(0, 50), fstUsrId: '建筑' },
          { bgbName: Random.integer(0, 50), fstUsrId: '生态环保' },
          { bgbName: Random.integer(0, 50), fstUsrId: '安全管理' },
          { bgbName: Random.integer(0, 50), fstUsrId: '其他' }
        ]
      }
    }
  },
  {
    // 作业风险检查表
    url: '/getSafeCheckTable',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: [
          Object.assign(
            {
              taskName: Random.ctitle(5, 25),
              taskDsc: Random.ctitle(5, 25)
            },
            fxdjList[Random.integer(0, 3)]
          ),
          Object.assign(
            {
              taskName: Random.ctitle(5, 25),
              taskDsc: Random.ctitle(5, 25)
            },
            fxdjList[Random.integer(0, 3)]
          ),
          Object.assign(
            {
              taskName: Random.ctitle(5, 25),
              taskDsc: Random.ctitle(5, 25)
            },
            fxdjList[Random.integer(0, 3)]
          ),
          Object.assign(
            {
              taskName: Random.ctitle(5, 25),
              taskDsc: Random.ctitle(5, 25)
            },
            fxdjList[Random.integer(0, 3)]
          ),
          Object.assign(
            {
              taskName: Random.ctitle(5, 25),
              taskDsc: Random.ctitle(5, 25)
            },
            fxdjList[Random.integer(0, 3)]
          ),
          Object.assign(
            {
              taskName: Random.ctitle(5, 25),
              taskDsc: Random.ctitle(5, 25)
            },
            fxdjList[Random.integer(0, 3)]
          )
        ]
      }
    }
  },
  {
    // 作业风险工作组上岗到位
    url: '/getSigngroup',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          'result|5-10': [
            {
              cstName: '@ctitle(3, 5)',
              cstCount: '@integer(10, 20)',
              compCount: '@integer(5, 15)'
            }
          ]
        })
      )
    }
  },
  {
    // 作业风险人员上岗到位
    url: '/getSignuser',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          'result|3-5': [
            {
              userName: '@cname',
              userCount: '@integer(10, 20)'
            }
          ]
        })
      )
    }
  },
  {
    // 作业风险人员上岗到位明细盒成果
    url: '/getSignlist',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          'result|5-10': [
            {
              signTime: '@datetime',
              'signType|1': ['违章', '隐患', '不符合项', '缺陷'],
              signName: '@ctitle(5, 15)',
              'signSta|1': ['待整改', '待验收', '已完成']
            }
          ]
        })
      )
    }
  },
  {
    // 隐患人员上岗到位
    url: '/getHdSignuser',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          'result|3-5': [
            {
              userName: '@cname',
              userTime: '@datetime',
              'userGrade|+1': ['公司级', '部门级', '班组级', '岗位级']
            }
          ]
        })
      )
    }
  },
  {
    // 隐患人员奖励清单
    url: '/getHdRewardList',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          atm01: '@integer(10,100)',
          atm02: '@integer(10,100)',
          atm03: '@integer(10,100)',
          'result|3-5': [
            {
              bgbName: '@ctitle(5, 15)',
              bgbDate: '@date',
              'bgbLevel|+1': ['VH', 'H', 'N'],
              totalAtm: 100,
              'findCstName|+1': ['生技部', '运行分场', '安监部'],
              findName: '@cname',
              findAtm: 40,
              'dealCstName|+1': ['东电一土建', '通辽检修-电气', '东电一公用'],
              dealName: '@cname',
              dealAtm: 50,
              'checkCstName|+1': ['生技部', '运行分场', '安监部'],
              checkName: '@cname',
              checkAtm: 10,
              jjDsc: ''
            }
          ]
        })
      )
    }
  },
  {
    // 设备风险清单
    url: '/getSbfxList',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          'result|5-10': [
            {
              xtName: '@ctitle(5, 15)',
              dyName: '@ctitle(5, 15)',
              'sbLevel|1': ['重要设备', '一般设备'],
              'sbSta|1': ['正常状态', '故障状态'],
              'fxdj|1': ['VH', 'H', 'N', 'L'],
              fxxq: '@ctitle(15, 25)',
              fxName: '@ctitle(5, 15)',
              'groupName|+1': ['东电一土建', '通辽检修-电气', '东电一公用', '电气检修'],
              iValue: '@Integer(2,10)',
              totalValue: '@Integer(5,20)',
              maxValue: '@Integer(5,20)',
              dudeType: '其他',
              dudeName: '运行环境',
              dudeValue: '@Integer(2,5)',
              dudeDsc: '@ctitle(5, 15)'
            }
          ]
        })
      )
    }
  },
  {
    // 设备风险清单-设备分项状态
    url: '/getSbfxfxList',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          'result|5-10': [
            {
              xtName: '@ctitle(5, 15)',
              dyName: '@ctitle(5, 15)',
              'sbLevel|1': ['重要设备', '一般设备'],
              'sbSta|1': ['正常状态', '故障状态'],
              'fxdj|1': ['VH', 'H', 'N', 'L'],
              fxxq: '@ctitle(15, 25)',
              fxName: '@ctitle(5, 15)',
              'groupName|+1': ['东电一土建', '通辽检修-电气', '东电一公用', '电气检修'],
              iValue: '@Integer(2,10)',
              totalValue: '@Integer(5,20)',
              maxValue: '@Integer(5,20)',
              dudeType: '其他',
              dudeName: '运行环境',
              dudeValue: '@Integer(2,5)',
              dudeDsc: '@ctitle(5, 15)'
            }
          ]
        })
      )
    }
  },
  {
    // 设备风险清单-设备分项扣分
    url: '/getSbfxkfList',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          'result|5-10': [
            {
              xtName: '@ctitle(5, 15)',
              dyName: '@ctitle(5, 15)',
              'sbLevel|1': ['重要设备', '一般设备'],
              'sbSta|1': ['正常状态', '故障状态'],
              'fxdj|1': ['VH', 'H', 'N', 'L'],
              fxxq: '@ctitle(15, 25)',
              fxName: '@ctitle(5, 15)',
              'groupName|+1': ['东电一土建', '通辽检修-电气', '东电一公用', '电气检修'],
              iValue: '@Integer(2,10)',
              totalValue: '@Integer(5,20)',
              maxValue: '@Integer(5,20)',
              dudeType: '其他',
              dudeName: '运行环境',
              dudeValue: '@Integer(2,5)',
              dudeDsc: '@ctitle(5, 15)'
            }
          ]
        })
      )
    }
  },
  {
    // 风险提示
    url: '/getRiskAnalysisPage',
    method: 'get',
    response: () => {
      return Object.assign(
        {
          code: 'success'
        },
        Mock.mock({
          'result|5-10': [
            {
              ttkName: '@ctitle(10, 30)',
              'fxdj|1': ['VH', 'H', 'N', 'L'],
              'gkdj|1': ['C', 'D', 'G', 'P'],
              ffcs: '@ctitle(50, 100)',
              zyqy: '@ctitle(5, 10)',
              fxfzr: '@cname',
              fxrs: '@Integer(1,10)',
              'whys|3-10': [
                {
                  'fxdj|1': ['VH', 'H', 'N', 'L'],
                  'name|1': [
                    '触电',
                    '烫伤',
                    '火灾',
                    '淹溺',
                    '坍塌',
                    '透水',
                    '物体打击',
                    '车辆伤害',
                    '机械伤害',
                    '起重伤害',
                    '高处坠落'
                  ]
                }
              ]
            }
          ]
        })
      )
    }
  },
  {
    // 事故事件列表
    url: '/getSgsjList',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        'result|5-10': [
          {
            bgbDate: '@date',
            cstName: '@ctitle(5, 10)',
            sjName: '@ctitle(30, 50)',
            'sjType|1': ['一类障碍', '二类障碍', '异常', '其他'],
            sjDsc: '@ctitle(50, 100)',
            userName: '@cname',
            bgbAtm: '@integer(20,50)'
          }
        ]
      }
    }
  },
  {
    // 事故事件列表
    url: '/getSgsjDetailList',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        'result|5-10': [
          {
            'detailCode|+1': 'EFS-WX-2024-@increment',
            cstName: '@ctitle(3, 5)',
            sjName: '@ctitle(20, 30)',
            xdxName: '@ctitle(20, 30)',
            jyfkName: '@ctitle(20, 30)',
            yhName: '@ctitle(20, 30)'
          }
        ]
      }
    }
  },
  {
    // 事故事件图表统计数据
    url: '/getSgsjChart',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        result: {
          'sjjb|4': [{ 'name|+1': ['一类障碍', '二类障碍', '异常', '其他'], value: '@integer(10,20)' }],
          'sjyy|4': [{ 'name|1': ['人员', '物品', '环境', '管理'], value: '@integer(10,20)' }],
          'sjzy|4-8': [{ 'name|1': ['热工', '电气', '锅炉', '环保', '输煤', '化学', '土建'], value: '@integer(10,20)' }]
        }
      }
    }
  },
  {
    // 事故事件级别统计数据
    url: '/getSgsjjbTable',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        'result|4-8': [
          {
            'sjType|+1': ['一类障碍', '二类障碍', '异常', '其他'],
            lastCount: '@integer(10,20)',
            thisCount: '@integer(10,20)',
            sjPercent: '@integer(10,100)',
            yearPercent: '@integer(10,150)'
          }
        ]
      }
    }
  },
  {
    // 事故事件原因数据
    url: '/getSgsjyyTable',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        'result|4-8': [
          {
            'sjCode|+1': 'EFS-WX-2024-@increment',
            cstName: '@ctitle(3, 5)',
            sjName: '@ctitle(20, 30)',
            'sjType|+1': ['一类障碍', '二类障碍', '异常', '其他'],
            sjYyfx: '@ctitle(10,20)',
            sjYlwt: '@ctitle(10,20)',
            sjCqcs: '@ctitle(10,100)'
          }
        ]
      }
    }
  },
  {
    // 事故事件原因数据
    url: '/getSgsjzyTable',
    method: 'get',
    response: () => {
      return {
        code: 'success',
        'result|4-8': [
          {
            'sjCode|+1': 'EFS-WX-2024-@increment',
            cstName: '@ctitle(3, 5)',
            sjName: '@ctitle(20, 30)',
            sjKhmx: '@ctitle(10,20)',
            sjAtm: '@integer(10,20)'
          }
        ]
      }
    }
  }
] as MockMethod[]
